package org.feifei.basic.query;

import lombok.*;

/**
 * 查询类的基类
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Data
public class BaseQuery {

    /** 当前页码数 */
    private Integer currentPage = 1;
    /** 页面显示条数 */
    private Integer pageSize = 5;
    /** 起始数 */
    private Integer getIndexSize() {
        return (currentPage - 1) * pageSize;
    }
    /** 关键字 */
    private String keyword;
}
